#ifndef _TD_MEDIA_H_
#define _TD_MEDIA_H_ 

#include "stdlib.h"
#include "stdio.h"
#include "inc/TdCodec.h"
#include "inc/TdRtp.h"


typedef struct {
  std::string channel;
  std::string destIp;
  uint16_t destPort;
  uint16_t basePort;
  CodecParam codecParam;
}MediaParam_t;



class TdMedia
{
private:
  /* data */
  std::string chan ;
  TdRtp mRtp ;
  TdCodec mCodec;
  FifoMsgSession * fifoMsg ;
public:
  TdMedia():mRtp(),mCodec(){}
  uint32_t init(MediaParam_t param);
  TdRtp* getRtpHandle();
  TdCodec* getCodecHandle();
  uint32_t start();
  ~TdMedia(){};
};

#endif